export default {
    hbm: {
        expire: 330,
        interval: 10,
    },
    mysql: {
        host: 'localhost',
        port: '3306',
        user: 'root',
        password: 'root',
        database: 'test',
    },
    redis: {
        host: '127.0.0.1',
        port: 6379,
    },
    redisBackend: {
        host: '127.0.0.1',
        port: 6379,
    },
    rabbit: {
        uri: 'amqp://khw-sms:AfAseArybVebBJ6NU8qtWDsggH4weseY@127.0.0.1:5672/%2Fsms-test',
        // uri: 'amqp://guest:guest@127.0.0.1:5672/%2Ftest',
        schema: [
            {
                exchange: 'exchange0',
                type: 'direct',
                options: {},
                bindings: [
                    {
                        routingPattern: 'test',
                        destination: {
                            queue: 'user.testqueue',
                            messageSchema: {
                                type: 'object',
                                properties: {
                                    foo: { type: 'string' },
                                },
                                required: ['foo'],
                                // http://json-schema.org
                            },
                            options: {/* queue options */},
                        },
                        args: {},
                    },
                ],
            },
        ],
    },
    mongo: {
        uri: 'mongodb://localhost/test',
        options: {
            server: {
                poolSize: 10,
                reconnectTries: Number.MAX_VALUE,
                socketOptions: {
                    keepAlive: 120,
                },
            },
            replset: {
                socketOptions: {
                    keepAlive: 120,
                },
            },
        },
    },
    useAccessLog: true,
    corsCheckDomain: /.*/,
    log4js: {
        appenders: [
            {
                type: 'logLevelFilter',
                level: 'DEBUG',
                appender: {
                    type: 'console',
                },
            },
        ],
    },
};
